﻿using System;
using nPress.Core.Interfaces;

namespace nPress.Core.Entities
{
    public class Comment : IIdentifiable
    {
        public Comment()
        {
            Approved = "1";
            Author = string.Empty;
            AuthorEmail = string.Empty;
            AuthorUrl = string.Empty;
            AuthorIP = string.Empty;
            Agent = string.Empty;
            Type = string.Empty;
        }

        public virtual int Id { get; private set; }
        public virtual Post Post { get; set; }
        public virtual string Author { get; set; } //255
        public virtual string AuthorEmail { get; set; } // 100
        public virtual string AuthorUrl { get; set; } //200
        public virtual string AuthorIP { get; set; } //100
        public virtual DateTime Date { get; set; }
        public virtual DateTime DateGMT { get; set; }
        public virtual string Content { get; set; } //65535
        public virtual int Karma { get; set; }
        public virtual string Approved { get; set; } //20
        public virtual string Agent { get; set; } //255
        public virtual string Type { get; set; } //20
        public virtual Comment Parent { get; set; }
        public virtual User User { get; set; }
    }
}
